package org.power.bus.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("current")
@ApiModel(value = "Current对象", description = "电流表")
public class Current implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "current_id", type = IdType.AUTO)
    @ApiModelProperty(value = "电流表ID")
    private Integer currentId;

    @TableField(value = "time")
    @ApiModelProperty(value = "电流记录时间")
    private String time;

    @TableField(value = "equipment_name")
    @ApiModelProperty(value = "设备名称")
    private String equipmentName;

    @TableField(value = "current")
    @ApiModelProperty(value = "电流")
    private String current;

    @TableField(value = "equipment_id")
    @ApiModelProperty(value = "设备id")
    private Integer equipmentId;
}
